package com.cskaoyan.controller;

import com.cskaoyan.bean.common.BaseRespVo;
import com.cskaoyan.bean.common.CommonData;
import com.cskaoyan.service.AdminRegionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Description:商场管理(行政区域)
 * @author:刘杰
 * @create: 2022-08-14 15:58
 */
@RestController
@RequestMapping("admin/region")
public class AdminRegionController {

    @Autowired
    AdminRegionService adminRegionService;

    @RequestMapping("list")
    public BaseRespVo list(){
        CommonData list = adminRegionService.list();
        return BaseRespVo.ok(list);
    }

}
